package xyz.hzxiao.session;

/**
 * @Author: scy
 * @Date: 2022-07-28 17:25
 */
public final class UserManager {

    public static final ThreadLocal<LoginAccountModel> USER_MANAGER = new ThreadLocal<>();

    public static LoginAccountModel getCurrentLoginAccount() {
        return USER_MANAGER.get();
    }

    public static void setLoginAccount(LoginAccountModel model) {
        USER_MANAGER.set(model);
    }

    public static void remove() {
        USER_MANAGER.remove();
    }
}
